using System;
using System.Diagnostics;

namespace Abstract2ion
{
	public class ProcessRunner : IProcessRunner
	{
		public IProcess Start(ProcessStartInfo processStartInfo)
		{
			if (processStartInfo == null)
			{
				throw new ArgumentNullException("processStartInfo");
			}

			return new ProcessWrapper(Process.Start(processStartInfo));
		}
	}
}